<?php

namespace app\common\model;

use think\Model;
class Information extends Model
{
    protected $resultSetType = 'collection';
    public static function get_information_list()
    {
        $where = "is_del = '0'";
        $field = "id,name,image";
        $order = "weigh DESC,add_time DESC";
        $list = self::where($where)->field($field)->order($order)->select()->toArray();
        return $list;
    }

    public function getImageAttr($value)
    {
        if($value){
            return splicing_domain($value);
        }else{
            return "";
        }
    }
}
